package com.yufubao.model.dto.common;

import com.yufubao.framework.core.validator.constraints.Phone;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/8/27 10:13
 */
@Data
@ApiModel(value = "手机号登录对象", description = "手机号登录")
public class PhoneLoginDto {

    @Phone
    @ApiModelProperty("phone")
    private String phone;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty("验证码")
    private String code;

}
